<template>
	<view>
		<u-navbar title="支付成功" placeholder bgColor="#F5F5F5" :autoBack="true">
		</u-navbar>
		<u-gap height="70rpx" bgColor="#F5F5F5"></u-gap>
		<view class="whiteGap"></view>
		<view class="text-center">
			<image v-if="payConfirm" class="wh120" src="https://test.uaima.cn/public/static/product/success.png"></image>
			<image v-else class="wh120" src="https://test.uaima.cn/public/static/product/error.png"></image>
			<view class="text-36 font-bold c_181818 mt-80">{{payConfirm?'支付成功':'支付失败'}}</view>
			<view class="text-30 font-medium mt-28" style="color: #6D6D6D;">{{payConfirm?'微信付款￥169':'商品已抢光，等待下场或联系客服'}}</view>
			<view class="seeOrder" :style="{
				background:payConfirm?'#28BA54':'#DF5F04'
			}">查看订单</view>
			<view class="backHomePage" @click="route_homePage">返回首页</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				payConfirm: false,
			}
		},
		methods: {
			route_homePage() {
				uni.reLaunch({
					url: "/pages/index/index"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.whiteGap {
		position: relative;
		z-index: 12;
		top: -40rpx;
		width: 100vw;
		height: 80rpx;
		background-color: #fff;
		border-radius: 40rpx 40rpx 0 0;
	}

	.wh120 {
		$wh: 120rpx;
		width: 120rpx;
		height: 120rpx;
	}

	.seeOrder {
		width: 368rpx;
		height: 88rpx;
		line-height: 88rpx;
		background: #28BA54;
		border-radius: 200rpx 200rpx 200rpx 200rpx;
		margin: 78rpx auto 0;
		font-weight: 500;
		font-size: 30rpx;
		color: #FFFFFF;
		text-align: center;
	}

	.backHomePage {
		width: 368rpx;
		height: 88rpx;
		line-height: 88rpx;
		border-radius: 200rpx 200rpx 200rpx 200rpx;
		border: 1rpx solid #EBEBEB;
		margin: 28rpx auto 0;
		font-weight: 500;
		font-size: 30rpx;
		color: #666666;
	}
</style>